Skip to content

fix: skip encode timestamp queries on unsupported queues - #28

Merged
hgaiser merged 3 commits into
hgaiser:mainfrom
schlegp:fix/radv-timestamp-bug
Jul 29, 2026
Merged

fix: skip encode timestamp queries on unsupported queues#28
hgaiser merged 3 commits into
hgaiser:mainfrom
schlegp:fix/radv-timestamp-bug

Conversation

@schlegp

@schlegp schlegp commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Running hgaiser/moonshine#116 against the latest pixelforge main was crashing on AMD RX 7900XTX with RADV.
Turns out, RADV does not support timestamps on the encode queue family.

This PR checks the reported timestamp capabilites during device selection and gates the functionality behind that.

@schlegp
schlegp force-pushed the fix/radv-timestamp-bug branch from b84a9e4 to 0997f1f Compare July 28, 2026 11:35
@schlegp
schlegp marked this pull request as ready for review July 28, 2026 11:39
@DatCaptainHorse

Copy link
Copy Markdown
Contributor

Seems to be a < RDNA4 thing as well, interesting 🤔

@schlegp

schlegp commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@DatCaptainHorse Do you use a RDNA4 GPU? If so, could you check if this fix works for you aswell?
Or are you maybe on AMDVLK?

Comment thread src/encoder/pipeline.rs Outdated

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this is safe with a null pointer, but should it be guarded by an if statement regardless?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, have placed it behind a guard.

@hgaiser
hgaiser merged commit 9cf1839 into hgaiser:main Jul 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants